package com.study.design.composite.company;

import com.study.design.composite.Component;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: Company
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-07-29 17:50
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public abstract class Company {
    protected String name;

    public Company(String name) {
        log.info("addLogStart Company InputParam: name : {} ", name);
        this.name = name;
    }

    //增加
    public abstract void Add(Company c);

    //移除
    public abstract void Remove(Company c);

    //显示
    public abstract void Display(Integer depth);

    //履行职责
    public abstract void LineOfDuyty();
}
